package com.taxi.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.taxi.dao.DriverDAO;
import com.taxi.model.Driver;

@Service
public class TaxiService {
    
    private DriverDAO driverDAO;

    /**
     * @return the driverDAO
     */
    public DriverDAO getDriverDAO() {
        return driverDAO;
    }

    /**
     * @param driverDAO the driverDAO to set
     */
    @Autowired
    public void setDriverDAO(DriverDAO driverDAO) {
        this.driverDAO = driverDAO;
    }

    public void saveDriver(Driver driver) {
        System.out.println(this.getDriverDAO());
        System.out.println("getDriverDAO().save(): " + driverDAO.save(driver));
    }

    
    
}
